//
//  TTCellSwitchModel.h
//  TaoTuo
//
//  Created by admin on 2019/10/16.
//  Copyright © 2019 admin. All rights reserved.
//

#import "TTCellModel.h"

typedef void(^SwitchStatusChangeBlock)(BOOL on);

NS_ASSUME_NONNULL_BEGIN

@interface TTCellSwitchModel : TTCellModel

@property (nonatomic, assign) BOOL isOpen;
@property (nonatomic, copy) NSString *key;

@property (nonatomic, copy) SwitchStatusChangeBlock changeBlock;

+ (instancetype)setModelWithTitle:(nullable NSString *)title key:(NSString *)key isOpen:(BOOL)isOpen changeBlock:(SwitchStatusChangeBlock)changeBlock;

@end

NS_ASSUME_NONNULL_END
